<template>
  <div class="check-button" :class="{checked: checked}">
    <img src="~assets/img/cart/tick.svg" />
  </div>
</template>

<script>
  export default {
    name: "CheckButton",
    props: {
      checked: {
        type: Boolean,
        default: false
      }
    }
  }
</script>

<style scoped>
  .check-button {
    background-color: var(--color-background);
    border: 1px solid #dadde0;
    border-radius: 50px;
    height: 20px;
    width: 20px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }

  .check-button img {
    height: 70%;
    width: 70%;
  }

  .checked {
    background-color: var(--color-tint);
    border-color: var(--color-tint);
  }
</style>